#include "config.h"
-#include "gtkstyleproperties.h"
+#include "gtkstylepropertiesprivate.h"
#include <stdlib.h>
#include <gobject/gvaluecollector.h>
typedef struct GtkStylePropertiesPrivate GtkStylePropertiesPrivate;
typedef struct PropertyData PropertyData;
-typedef struct _GtkStyleProperty GtkStyleProperty;
typedef struct ValueData ValueData;
-struct _GtkStyleProperty
-{
- GParamSpec *pspec;
- GtkStylePropertyParser parse_func;
-};
-
struct ValueData
{
GtkStateFlags state;
}
const GtkStyleProperty *
-gtk_style_property_lookup (const char *name)
+_gtk_style_property_lookup (const char *name)
{
gtk_style_property_init ();
gtk_style_property_init ();
- existing = gtk_style_property_lookup (pspec->name);
+ existing = _gtk_style_property_lookup (pspec->name);
if (existing != NULL)
{
g_warning ("Property \"%s\" was already registered with type %s",
g_return_val_if_fail (property_name != NULL, FALSE);
- node = gtk_style_property_lookup (property_name);
+ node = _gtk_style_property_lookup (property_name);
if (node)
{
g_return_if_fail (property != NULL);
g_return_if_fail (value != NULL);
- node = gtk_style_property_lookup (property);
+ node = _gtk_style_property_lookup (property);
if (!node)
{
gchar *error = NULL;
GValue *val;
- node = gtk_style_property_lookup (property_name);
+ node = _gtk_style_property_lookup (property_name);
if (!node)
{
g_return_val_if_fail (GTK_IS_STYLE_PROPERTIES (props), NULL);
g_return_val_if_fail (prop_name != NULL, NULL);
- node = gtk_style_property_lookup (prop_name);
+ node = _gtk_style_property_lookup (prop_name);
if (!node)
{
g_return_val_if_fail (property != NULL, FALSE);
g_return_val_if_fail (value != NULL, FALSE);
- node = gtk_style_property_lookup (property);
+ node = _gtk_style_property_lookup (property);
if (!node)
{
gchar *error = NULL;
GValue *val = NULL;
- node = gtk_style_property_lookup (property_name);
+ node = _gtk_style_property_lookup (property_name);
if (!node)
{
g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props));
g_return_if_fail (property != NULL);
- node = gtk_style_property_lookup (property);
+ node = _gtk_style_property_lookup (property);
if (!node)
{